package com.cskaoyan.mall.cart.controller;

import com.cskaoyan.mall.common.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用于接收其他服务的请求，并返回相应的结果
 * @author Macro_Ray
 * @since 2024/6/26 下午5:29
 */
@RestController
public class CartApiController {

    /**
     * 更新用户购物车中商品价格
     */
    @GetMapping("/api/cart/inner/refresh/{userId}/{skuId}")
    Result refreshCartPrice(@PathVariable(value = "userId") String userId, @PathVariable(value = "skuId") Long skuId){

        return Result.ok();
    }
}
